home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-28 | 33.3 KB | 1,275 lines | [TEXT/KAHL] |
- // -----------------------------------------------------------------------------
- // File : demoDialog.r
- // Date : August 24, 1994
- // Author : Jim Stout
- // Purpose : resource descriptions for demoDialog.c
- //
- // -----------------------------------------------------------------------------
- #define REZ // Think 6 - see jimsCDEF.h
- #define SystemSevenOrLater 1
-
- #include <Types.r>
- #include "jimsCDEF.h" // variation codes for the CDEFs
-
- include "demoCICN.rsrc"; // a bunch of icons
-
- #define BLACK 1
-
- resource 'dctb' (1000, "Empty dctb", purgeable) { { } };
-
- resource 'cctb' (10, purgeable) { // set to 0 to color all controls
- {
- #if BLACK
- /* [1] */ cFrameColor, 0, 0, 0,
- /* [2] */ cTextColor, 0, 0, 0,
- /* [3] */ cBodyColor, -1,-1,-1,
- #else
- /* [1] */ cFrameColor, 0, 0, 13107,
- /* [2] */ cTextColor, 0, 0, 0 ,
- /* [3] */ cBodyColor, -1,-1,-1,
- #endif
- /* [4] */ cElevatorColor, 61166, 61166, 61166,
- /* [5] */ cFillPatColor, 384, 384, 26214,
- /* [6] */ cTingeLight, 52428, 52428, 65535,
- /* [6] */ cTingeDark, 13107, 13107, 26214
- }
- };
-
- resource 'cctb' (128, purgeable) { // TabPanel control colors
- {
- #if BLACK
- /* [1] */ cFrameColor, 0, 0, 0,
- /* [2] */ cTextColor, 0, 0, 0,
- #else
- /* [1] */ cFrameColor, 0, 0, 13107,
- /* [2] */ cTextColor, 0, 0, 0,
- #endif
- }
- };
-
- //----------------------------------------------------------------------------
- // Main dialog
- //----------------------------------------------------------------------------
-
- resource 'DLOG' (128, "demoCDEF", purgeable) {
- {46, 15, 340, 493}, movableDBoxProc, invisible, nogoAway, 0x0, 128,
- "demoCDEF Dialog",
- #if SystemSevenOrLater
- centerMainScreen
- #endif
- };
-
- resource 'DITL' (128, "demoCDEF base", purgeable) {
- {
- /* [1] */ {261, 406, 281, 465}, Button { enabled, "OK" },
- /* [2] */ {261, 334, 281, 393}, Button { enabled, "Cancel" },
- /* [3] */ {4, 4, 36, 474}, Control { enabled, 128 },
- /* [4] */ {260, 277, 282, 299}, Control { enabled, 150 },
- /* [5] */ {260, 245, 282, 267}, Control { enabled, 151 },
- /* [6] */ {261, 40, 281, 99}, Button { enabled, "Disable" }
- }
- };
-
- resource 'CNTL' (128, "Tab Panel Control", purgeable) {
- {4, 4, 36, 474}, // control rect (keep height to 16*rows!)
- 1, // initial value = active tab
- visible,
- 8, // max value (match to titles below)
- 244, // REAL height of control rect
- 16*tabPanel, // procID
- 0,
- //
- // Titles for each tab follow
- //
- "3D Buttons\nPopUp Menus\nArrows\nDate & Time\nHorizontal Sliders"
- "\nVertical Sliders\nProgress Bars\nPopup Extensions"
- };
-
- resource 'CNTL' (150, purgeable) {
- {260, 277, 282, 299},
- popupTitleLeftJust,
- visible,
- popupIconOnly+popupInsetFrame,
- 135,
- 16*popUp+popupFixedWidth,
- 0,
- "Background:"
- };
-
- resource 'CNTL' (151, purgeable) {
- {260, 245, 282, 267},
- popupTitleLeftJust,
- visible,
- popupIconOnly+popupInsetFrame,
- 151,
- 16*popUp+popupFixedWidth,
- 0,
- "Background:"
- };
-
-
- /*
- resource 'CNTL' (150, purgeable) {
- {261, 120, 281, 299},
- popupTitleLeftJust,
- visible,
- 90+popupInsetFrame,
- 150,
- 16*popUp+popupFixedWidth,
- 0,
- "Background:"
- };
- */
-
- resource 'MENU' (150) {
- 150, textMenuProc, allEnabled, enabled, "Font sizes",
- {
- /* [1] */ "White", noIcon, noKey, noMark, plain,
- /* [2] */ "Gray A", noIcon, noKey, noMark, plain,
- /* [2] */ "Gray C", noIcon, noKey, noMark, plain,
- /* [3] */ "Gray D", noIcon, noKey, noMark, plain,
- /* [4] */ "Gray E", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (151) {
- 151, textMenuProc, allEnabled, enabled, "Window color",
- {
- /* [1] */ " ", 110, noKey, noMark, plain,
- /* [2] */ " ", 116, noKey, noMark, plain,
- /* [3] */ " ", 117, noKey, noMark, plain,
- /* [4] */ " ", 118, noKey, noMark, plain
- }
- };
-
-
- resource 'dctb' (128, purgeable) {
- {
- /* [1] */ wContentColor, 65535,65535,65535, // white
- /* [2] */ wFrameColor, 0, 0, 0,
- /* [3] */ wTextColor, 0, 0, 0,
- /* [4] */ wHiliteColor, 0, 0, 0,
- /* [5] */ wTitleBarColor, 65535, 65535, 65535
- }
- };
-
- //----------------------------------------------------------------------------
- // panel 1 - BUTTONS - begins here
- //----------------------------------------------------------------------------
- #pragma mark 3D_BUTTONS_PANEL1
-
- resource 'DITL' (129, "Buttons panel 1", purgeable) {
- {
-
- // Check boxes
-
- /* [1] */ {64, 22, 80, 142}, Control {enabled, 129 },
- /* [2] */ {84, 22, 100, 142}, Control {enabled, 130 },
- /* [3] */ {104, 22, 120, 142}, Control {enabled, 131 },
- /* [4] */ {124, 22, 140, 142}, Control {enabled, 132 },
-
- // Radio buttons
- /* [5] */ {64, 172, 80, 292}, Control {enabled, 133 },
- /* [6] */ {84, 172, 100, 292}, Control {enabled, 134 },
- /* [7] */ {104, 172, 120, 292}, Control {enabled, 135 },
- /* [8] */ {124, 172, 140, 292}, Control {enabled, 136 },
-
- // Tog buttons
-
- /* [9] */ {64, 320, 80, 440}, Control {enabled, 137 },
- /* [10] */ {84, 320, 100, 440}, Control {enabled, 138 },
- /* [11] */ {104, 320, 120, 440}, Control {enabled, 139 },
- /* [12] */ {124, 320, 140, 440}, Control {enabled, 140 },
-
- // Push buttons
-
- /* [13] */ {192, 22, 212, 88}, Control {enabled, 141 },
- /* [14] */ {180, 101, 220, 159}, Control {enabled, 142 },
-
- // Font popups
-
- /* [15] */ {177, 186, 204, 343}, Control {enabled, 143 },
- /* [16] */ {182, 349, 198, 383}, StaticText {disabled, "Size:" },
- /* [17] */ {182, 388, 198, 416}, EditText {enabled, "12" },
- /* [18] */ {177, 422, 204, 453}, Control {enabled, 144 },
- /* [19] */ {208, 288, 228, 347}, Button {enabled, "Set" },
-
- // Group boxes
-
- /* [20] */ {48, 14, 64, 154}, Control {enabled, 145 },
- /* [21] */ {48, 164, 64, 304}, Control {enabled, 146 },
- /* [22] */ {48, 314, 64, 454}, Control {enabled, 147 },
- /* [23] */ {156, 14, 172, 172}, Control {enabled, 148 },
- /* [24] */ {156, 182, 172, 454}, Control {enabled, 149 }
- }
- };
-
- // CheckBoxes
-
- resource 'CNTL' (129, purgeable) {
- {64, 22, 80, 142}, 1, visible, 1, 0,
- checkBoxProcUseWFont,
- 0,
- "Check Box 1"
- };
-
- resource 'CNTL' (130, purgeable) {
- {84, 22, 100, 142}, 0, visible, 1, 0,
- checkBoxProcUseWFont,
- 0,
- "Check Box 2"
- };
-
- resource 'CNTL' (131, purgeable) {
- {104, 22, 120, 142}, 0, visible, 1, 0,
- checkBoxProcUseWFont,
- 0,
- "Check Box 3"
- };
-
- resource 'CNTL' (132, purgeable) {
- {124, 172, 140, 292}, 0, visible, 1, 0,
- checkBoxProcUseWFont,
- 0,
- "Check Box 4"
- };
-
- // Radio Buttons
-
- resource 'CNTL' (133, purgeable) {
- {64, 172, 80, 292}, 1, visible, 1, 0,
- radioButProcUseWFont,
- 0,
- "Radio Button 1"
- };
-
- resource 'CNTL' (134, purgeable) {
- {84, 172, 100, 292}, 0, visible, 1, 0,
- radioButProcUseWFont,
- 0,
- "Radio Button 2"
- };
-
- resource 'CNTL' (135, purgeable) {
- {104, 172, 120, 292}, 0, visible, 1, 0,
- radioButProcUseWFont,
- 0,
- "Radio Button 3"
- };
-
- resource 'CNTL' (136, purgeable) {
- {124, 172, 140, 292}, 0, visible, 1, 0,
- radioButProcUseWFont,
- 0,
- "Radio Button 4"
- };
-
- // Tog Buttons
-
- resource 'CNTL' (137, purgeable) {
- {64, 320, 80, 440}, 1, visible, 1, 0,
- 16*togCDEF+useWFont,
- 0,
- "Tog Button 1"
- };
-
- resource 'CNTL' (138, purgeable) {
- {84, 320, 100, 440}, 0, visible, 1, 0,
- 16*togCDEF+useWFont,
- 0,
- "Tog Button 2"
- };
-
- resource 'CNTL' (139, purgeable) {
- {104, 320, 120, 440}, 0, visible, 1, 0,
- 16*togCDEF+useWFont,
- 0,
- "Tog Button 3"
- };
-
- resource 'CNTL' (140, purgeable) {
- {124, 320, 140, 440}, 0, visible, 1, 0,
- 16*togCDEF+useWFont,
- 0,
- "Tog Button 4"
- };
-
- resource 'CNTL' (141, purgeable) {
- {192, 22, 212, 88}, 0, visible, 1, 0,
- 0+useWFont+useWBG,
- 0,
- "Disabled"
- };
-
- resource 'CNTL' (142, purgeable) {
- {180, 101, 220, 159}, 0, visible, 1, 0,
- 0+useWFont+useWBG,
- 0,
- "Multi\nLine"
- };
-
- // Change Font popups
-
- resource 'CNTL' (143, purgeable) {
- {177, 186, 204, 343},
- popupTitleRightJust,
- visible,
- 45+popupInsetFrame,
- 143,
- 16*popUp+popupUseWFont+popupUseAddResMenu+popupFixedWidth,
- 'FONT', // refCon
- "Font:"
- };
-
- resource 'CNTL' (144, purgeable) {
- {177, 422, 204, 453},
- popupTitleRightJust,
- visible,
- popupSymbolOnly+popupInsetFrame,
- 144,
- 16*popUp+useWFont,
- 0,
- "popup Symbol only"
- };
-
- resource 'MENU' (143) {
- 143, textMenuProc, allEnabled, enabled, "empty Font menu",
- {
- }
- };
-
- resource 'MENU' (144) {
- 144, textMenuProc, allEnabled, enabled, "Font sizes",
- {
- /* [1] */ "9", noIcon, noKey, noMark, plain,
- /* [2] */ "10", noIcon, noKey, noMark, plain,
- /* [3] */ "12", noIcon, noKey, noMark, plain,
- /* [4] */ "14", noIcon, noKey, noMark, plain,
- /* [5] */ "18", noIcon, noKey, noMark, plain
- }
- };
- // Group Boxes
-
- resource 'CNTL' (145, purgeable) {
- {48, 14, 64, 154}, 0, visible, 100, 0,
- 16*groupBox+useWFont,
- 0,
- "Check Boxes"
- };
-
- resource 'CNTL' (146, purgeable) {
- {48, 164, 64, 304}, 0, visible, 100, 0,
- 16*groupBox+grayLine+useWFont,
- 0,
- "Radio Buttons"
- };
-
- resource 'CNTL' (147, purgeable) {
- {48, 314, 64, 454}, 0, visible, 100, 0,
- 16*groupBox+ctl3D+useWFont,
- 0,
- "“Tog” Buttons"
- };
-
- resource 'CNTL' (148, purgeable) {
- {156, 14, 172, 172}, 0, visible, 81, 0,
- 16*groupBox+insetBox+useWFont,
- 0,
- "Push Buttons"
- };
-
- resource 'CNTL' (149, purgeable) {
- {156, 182, 172, 454}, 0, visible, 81, 0,
- 16*groupBox+7+useWFont,
- 0,
- "Change Font"
- };
-
- #pragma mark POPUP_PANEL2
- //----------------------------------------------------------------------------
- // Panel 2 - POPUPS - begins here
- //----------------------------------------------------------------------------
-
- resource 'DITL' (130, "Popup panel 2", purgeable) {
- {
- // standard CDEF 63 style menus
-
- /* [1] */ {52, 20, 75, 320}, Control {enabled, 1300 },
- /* [2] */ {85, 20, 108, 320}, Control {enabled, 1301 },
- /* [3] */ {118, 20, 141, 320}, Control {enabled, 1302 },
- /* [4] */ {151, 10, 174, 320}, Control {enabled, 1303 },
- /* [5] */ {184, 80, 238, 330}, Control {enabled, 1304 },
- /* [6] */ {52, 325, 75, 460}, Control {enabled, 1305 },
- /* [7] */ {184, 340, 238, 460}, Control {enabled, 1306 },
- }
- };
-
- resource 'CNTL' (1300, purgeable) {
- {52, 20, 75, 320},
- popupTitleRightJust,
- visible,
- popupBlackSymbol+120,
- 256,
- 16*popUp+popupFixedWidth+ctl3D,
- 0,
- "Right:"
- };
- resource 'CNTL' (1301, purgeable) {
- {85, 20, 108, 320},
- popupTitleLeftJust,
- visible,
- 120,
- 257,
- 16*popUp+popupFixedWidth,
- 0,
- "Left:"
- };
- resource 'CNTL' (1302, purgeable) {
- {118, 20, 141, 320},
- popupTitleCenterJust+popupTitleOutline,
- visible,
- 120,
- 258,
- 16*popUp+popupFixedWidth,
- 0,
- "Center:"
- };
- resource 'CNTL' (1303, purgeable) {
- {151, 10, 174, 320},
- popupTitleRightJust+popupTitleBold,
- visible,
- 130,
- 259,
- 16*popUp,
- 0,
- "Not Fixed Width:"
- };
- resource 'CNTL' (1304, purgeable) {
- {184, 80, 238, 330},
- popupTitleRightJust+popupTitleItalic,
- visible,
- 60,
- 260,
- 16*popUp,
- 0,
- "Icons: "
- };
- resource 'CNTL' (1305, purgeable) {
- {52, 325, 75, 460},
- popupTitleRightJust,
- visible,
- 40,
- 261,
- 16*popUp+useWFont,
- 0,
- "Popup:"
- };
- resource 'CNTL' (1306, purgeable) {
- {184, 340, 238, 460},
- popupTitleRightJust,
- visible,
- 44,
- 262,
- 16*popUp+useWFont,
- 0,
- "Colors:"
- };
-
- resource 'MENU' (256) {
- 256, textMenuProc, allEnabled, enabled, "sample menu 1",
- {
- /* [1] */ "Styled Item Text", noIcon, noKey, noMark, plain,
- /* [2] */ "Red Italic", noIcon, noKey, noMark, italic,
- /* [3] */ "Blue Outline", noIcon, noKey, noMark, outline,
- /* [4] */ "Green Bold", noIcon, noKey, noMark, bold,
- /* [5] */ "Item Five is a long item", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (257) {
- 257, textMenuProc, 0x7ffffffe, enabled, "sample menu 2",
- {
- /* [1] */ "Disabled Item", noIcon, noKey, noMark, plain,
- /* [2] */ "Item 2 ", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (258) {
- 258, textMenuProc, allEnabled, enabled, "sample menu 3",
- {
- /* [1] */ "Colored Item Text", noIcon, noKey, noMark, plain,
- /* [2] */ "Item 2 ", noIcon, noKey, noMark, plain,
- /* [2] */ "Item 3 ", noIcon, noKey, noMark, plain,
- /* [2] */ "Item 4 ", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (259) {
- 259, textMenuProc, allEnabled, enabled, "sample menu 4",
- {
- /* [1] */ "PopUp CDEF", noIcon, noKey, noMark, plain,
- /* [2] */ "Item 2 ", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (260) {
- 260, textMenuProc, allEnabled, enabled, "sample menu 5",
- {
- /* [1] */ "Small cicn", 44, noKey, noMark, plain,
- /* [2] */ "Large cicn", 45, noKey, noMark, plain,
- /* [3] */ "Very Large cicn", 46, noKey, noMark, plain,
- /* [4] */ "B&W Icon", 5, noKey, noMark, plain,
- /* [5] */ "B&W Icon (reduced)", 5, "\0x1D", noMark, plain,
- /* [6] */ "Small Icon (SICN)", 6, "\0x1E", noMark, plain,
- /* [7] */ "cicn (reduced)", 47, "\0x1D", noMark, plain,
- }
- };
- resource 'MENU' (261) {
- 261, textMenuProc, allEnabled, enabled, "sample menu 6",
- {
- /* [1] */ "CDEF using", noIcon, noKey, noMark, plain,
- /* [2] */ "the Window", noIcon, noKey, noMark, plain,
- /* [2] */ "font", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (262) {
- 262, textMenuProc, allEnabled, enabled, "sample menu 7",
- {
- /* [1] */ " ", 101, noKey, noMark, plain,
- /* [2] */ " ", 102, noKey, noMark, plain,
- /* [3] */ " ", 103, noKey, noMark, plain,
- /* [4] */ " ", 104, noKey, noMark, plain,
- /* [5] */ " ", 105, noKey, noMark, plain,
- /* [6] */ " ", 106, noKey, noMark, plain,
- /* [7] */ " ", 107, noKey, noMark, plain,
- /* [8] */ " ", 108, noKey, noMark, plain,
- /* [9] */ " ", 109, noKey, noMark, plain,
- }
- };
-
- resource 'mctb' (256) {
- {
- /* [1] */ 256, 0,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 37715, 65535, 65535
- },
- /* [2] */ 256, 1, // item 1 colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 39321, 0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [3] */ 256, 2, // item 2 colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 65535,0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [4] */ 256, 3,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 65535,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [5] */ 256, 4,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 8738, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- }
- }
- };
-
- resource 'mctb' (258) {
- {
- /* [1] */ 258, 0, // menu colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 61166, 61166, 61166 // bg is gray
- },
- /* [2] */ 258, 1, // item 1 colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 13107, 0, 39321,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [3] */ 258, 2, // item 2 colors
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 65535,0, 0,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [4] */ 258, 3,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 0, 0, 65535,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- },
- /* [5] */ 258, 4,
- {
- /* [1] */ 0, 0, 0,
- /* [2] */ 65535, 0, 65535,
- /* [3] */ 0, 0, 0,
- /* [4] */ 65535, 65535, 65535
- }
- }
- };
- //----------------------------------------------------------------------------
- // Panel 3 - SPINNERS - begins here
- //----------------------------------------------------------------------------
- #pragma mark SPINNERS_PANEL3
-
- resource 'DITL' (131, "Spinner panel 3", purgeable) {
- {
- /* [1] */ {75, 50, 95, 162}, Control { enabled, 1312 },
- /* [2] */ {103, 50, 130, 166}, Control { enabled, 1313 },
- /* [3] */ {138, 149, 158, 162}, Control { enabled, 1314 },
- /* [4] */ {166, 50, 193, 176}, Control { enabled, 1315 },
-
- /* [5] */ {75, 230, 95, 342}, Control { enabled, 1316 },
- /* [6] */ {103, 230, 130, 346}, Control { enabled, 1317 },
- /* [7] */ {138, 329, 165, 346}, Control { enabled, 1318 },
- /* [8] */ {173, 230, 193, 353}, Control { enabled, 1319 },
-
- /* [9] */ {140, 103, 155, 143}, EditText { enabled, "0" },
- /* [10] */ {142, 287, 158, 324}, StaticText { disabled, "0" },
- }
- };
-
- resource 'CNTL' (1312, purgeable) {
- {75, 50, 95, 162}, 0,
- visible, 100, -100,
- 16*spinner+ctl3D+useWFont,
- 10, // refCon = increment
- "Small 3D:"
- };
-
- resource 'CNTL' (1313, purgeable) {
- {103, 50, 130, 166}, 0,
- visible, 10, 0,
- 16*spinner+ctl3D+useWFont+bigArrows,
- 0,
- "Large 3D:"
- };
-
- resource 'CNTL' (1314, purgeable) {
- {138, 149, 158, 162}, 0,
- visible, 999, -999,
- 16*spinner+ctl3D,
- $000F0005, // refCon = DITL item and increment
- "Linked to edit item 9 with an increment of 5"
-
- // remember, DITLBASE = 6, so 6+9 = 17 = 0x000F + 0005 for refCon
- };
-
- resource 'CNTL' (1315, purgeable) {
- {166, 50, 193, 176}, 0,
- visible, 100, -100,
- 16*spinner+ctl3D+useWFont+bigArrows+horizArrows,
- 0,
- "Horiz 3D:"
- };
-
- resource 'CNTL' (1316, purgeable) {
- {75, 230, 95, 342}, 0,
- visible, 100, 0,
- 16*spinner+useWFont,
- 10, // refCon = increment
- "Small:"
- };
-
- resource 'CNTL' (1317, purgeable) {
- {103, 230, 130, 346}, 0,
- visible, 200, -10,
- 16*spinner+useWFont+bigArrows,
- 0,
- "Large:"
- };
-
- // this spinner is going to adjust by 0.10 instead of 1.
- // This requires a special action proc for TrackControl
- // See trackSpin7 in demoCDEF.c and a bit of special
- // initialization (see restorePanel)
-
- resource 'CNTL' (1318, purgeable) {
- {138, 329, 165, 346}, 0,
- visible, 20, -20,
- 16*spinner+bigArrows,
- 0,
- "Fractional value"
- };
-
- resource 'CNTL' (1319, purgeable) {
- {173, 230, 193, 353}, 0,
- visible, 10, -10,
- 16*spinner+useWFont+horizArrows,
- 0,
- "Horiz:"
- };
-
- //----------------------------------------------------------------------------
- // Panel 4 - DATETIME - begins here
- //----------------------------------------------------------------------------
- #pragma mark DATE_TIME_PANEL4
-
- resource 'DITL' (132, "Date & Time panel 4", purgeable) {
- {
- /* [1] */ {47, 90, 67, 263}, Control {enabled, 1321 },
- /* [2] */ {72, 90, 92, 270}, Control {enabled, 1322 },
- /* [3] */ {97, 90, 117, 200}, Control {enabled, 1323 },
- /* [4] */ {122, 90, 142, 261}, Control {enabled, 1324 },
- /* [5] */ {147, 90, 184, 270}, Control {enabled, 1325 },
- /* [6] */ {192, 90, 229, 270}, Control {enabled, 1326 },
-
- /* [7] */ {49, 10, 65, 55}, StaticText {disabled, "Variation:"},
- /* [8] */ {49, 60, 65, 80}, StaticText {disabled, "0" },
- /* [9] */ {74, 60, 90, 80}, StaticText {disabled, "1" },
- /* [10] */ {99, 60, 115, 80}, StaticText {disabled, "2" },
- /* [11] */ {125, 60, 141, 80}, StaticText {disabled, "8" },
- /* [12] */ {154, 60, 170, 80}, StaticText {disabled, "4+8" },
- /* [13] */ {194, 60, 210, 80}, StaticText {disabled, "4" },
- /* [14] */ {208, 370, 228, 428}, Button { enabled, "Reset" },
- }
- };
-
- // non-zero min forces 3D look
- // non-zero max forces 24 hour setting
-
- resource 'CNTL' (1321, purgeable) {
- {47, 90, 67, 263}, 0, visible, only24, ctl3D,
- 16*dateTime,
- 0,
- "Both:"
- };
- resource 'CNTL' (1322, purgeable) {
- {72, 90, 92, 270}, 0, visible, 0, ctl3D,
- 16*dateTime+dateOnly,
- 0, // refCon could be a DateTime value
- "Date:"
- };
- resource 'CNTL' (1323, purgeable) {
- {97, 90, 117, 200}, 0, visible, only24, ctl3D,
- 16*dateTime+timeOnly,
- 0,
- "Time:"
- };
- resource 'CNTL' (1324, purgeable) {
- {122, 90, 142, 261}, 0, visible, 0, ctl3D,
- 16*dateTime+useWFont,
- 0,
- "Both:"
- };
- resource 'CNTL' (1325, purgeable) {
- {147, 90, 184, 270}, 0, visible, 0, ctl3D,
- 16*dateTime+useWFont+dtStack,
- 0,
- "Date & Time:"
- };
- resource 'CNTL' (1326, purgeable) {
- {192, 90, 229, 270}, 0, visible, 0, 0,
- 16*dateTime+dtStack,
- 0,
- ""
- };
-
- //----------------------------------------------------------------------------
- // Panel 5 - HSLIDERS - begins here
- //----------------------------------------------------------------------------
- #pragma mark HSLIDERS_PANEL5
-
- resource 'DITL' (133, "HSlider panel 5", purgeable) {
- {
- /* [1] */ {47, 90, 71, 211}, Control {enabled, 1331 },
- /* [2] */ {87, 90, 111, 211}, Control {enabled, 1332 },
- /* [3] */ {127, 90, 151, 211}, Control {enabled, 1333 },
- /* [4] */ {167, 90, 191, 211}, Control {enabled, 1334 },
- /* [5] */ {207, 90, 231, 211}, Control {enabled, 1335 },
-
- /* [6] */ {51, 320, 67, 455}, Control {enabled, 1336 },
- /* [7] */ {91, 320, 107, 455}, Control {enabled, 1337 },
- /* [8] */ {131, 320, 147, 455}, Control {enabled, 1338 },
- /* [9] */ {171, 320, 187, 455}, Control {enabled, 1339 },
- /* [10] */ {213, 320, 227, 455}, Control {enabled, 1340 },
-
- /* [11] */ {132, 220, 148, 240}, StaticText {disabled, "35" },
- /* [12] */ {155, 383, 168, 411}, StaticText {disabled, "0" },
-
- /* [13] */ {51, 10, 67, 55}, StaticText {disabled, "Variation:"},
- /* [14] */ {51, 60, 67, 80}, StaticText {disabled, "0" },
- /* [15] */ {91, 60, 107, 80}, StaticText {disabled, "1" },
- /* [16] */ {131, 60, 147, 80}, StaticText {disabled, "2" },
- /* [17] */ {171, 60, 187, 80}, StaticText {disabled, "4" },
- /* [18] */ {211, 60, 227, 80}, StaticText {disabled, "1+4" },
-
- /* [19] */ {51, 240, 67, 285}, StaticText {disabled, "Variation:"},
- /* [20] */ {51, 300, 67, 310}, StaticText {disabled, "0" },
- /* [21] */ {91, 287, 107, 310}, StaticText {disabled, "1+8" },
- /* [22] */ {131, 300, 147, 310}, StaticText {disabled, "2" },
- /* [23] */ {171, 300, 187, 310}, StaticText {disabled, "4" },
- /* [24] */ {211, 290, 227, 310}, StaticText {disabled, "2+4" },
- }
- };
-
- resource 'CNTL' (1331, purgeable) {
- {47, 90, 71, 211}, 0, visible, 100, 0,
- 16*hSlider,
- 0, ""
- };
- resource 'CNTL' (1332, purgeable) {
- {87, 90, 111, 211}, 0, visible, 100, 0,
- 16*hSlider+scaleNoFill,
- 0, ""
- };
- resource 'CNTL' (1333, purgeable) {
- {127, 90, 151, 211}, 0, visible, 100, 0,
- 16*hSlider+ctl3D,
- 0, ""
- };
- resource 'CNTL' (1334, purgeable) {
- {167, 90, 191, 211}, 0, visible, 100, 0,
- 16*hSlider+scaleGray,
- 0, ""
- };
- resource 'CNTL' (1335, purgeable) {
- {207, 90, 231, 211}, 0, visible, 100, 0,
- 16*hSlider+scaleNoFill+scaleGray,
- 0, ""
- };
-
- resource 'CNTL' (1336, purgeable) {
- {51, 320, 67, 455}, 10, visible, 100, 0,
- 16*slider,
- 0, ""
- };
- resource 'CNTL' (1337, purgeable) {
- {91, 320, 107, 455}, 20, visible, 100, 0,
- 16*slider+narrowScale+snapToScale,
- 0, ""
- };
- resource 'CNTL' (1338, purgeable) {
- {131, 320, 147, 455}, 30, visible, 100, 0,
- 16*slider+narrowScale2,
- 0, ""
- };
- resource 'CNTL' (1339, purgeable) {
- {171, 320, 187, 455}, 40, visible, 100, -100,
- 16*slider+filledScale,
- 0, ""
- };
- resource 'CNTL' (1340, purgeable) {
- {213, 320, 227, 455}, 50, visible, 100, -100,
- 16*slider+narrowScale2+filledScale,
- 0, ""
- };
- //----------------------------------------------------------------------------
- // Panel 6 - VSLIDERS - begins here
- //----------------------------------------------------------------------------
- #pragma mark VSLIDERS_PANEL6
-
- resource 'DITL' (134, "VSlider panel 6", purgeable) {
- {
- /* [1] */ {72, 40, 177, 82}, Control {enabled, 1341 },
- /* [2] */ {72, 90, 177, 132}, Control {enabled, 1342 },
- /* [3] */ {72, 140, 213, 182}, Control {enabled, 1343 },
- /* [4] */ {72, 190, 213, 232}, Control {enabled, 1344 },
- /* [5] */ {72, 240, 177, 282}, Control {enabled, 1345 },
-
- /* [6] */ {72, 310, 213, 326}, Control {enabled, 1346 },
- /* [7] */ {72, 350, 213, 366}, Control {enabled, 1347 },
- /* [8] */ {72, 390, 213, 406}, Control {enabled, 1348 },
- /* [9] */ {72, 432, 213, 446}, Control {enabled, 1349 },
-
- /* [10] */ {182, 264, 198, 290}, StaticText {disabled, "0" },
-
- /* [11] */ {51, 10, 67, 55}, StaticText {disabled, "Variation:"},
- /* [12] */ {51, 66, 67, 80}, StaticText {disabled, "0" },
- /* [13] */ {51, 116, 67, 130}, StaticText {disabled, "1" },
- /* [14] */ {51, 166, 67, 180}, StaticText {disabled, "2" },
- /* [15] */ {51, 216, 67, 230}, StaticText {disabled, "4" },
- /* [16] */ {51, 260, 67, 300}, StaticText {disabled, "4+8" },
-
- /* [17] */ {51, 314, 67, 328}, StaticText {disabled, "0" },
- /* [18] */ {51, 348, 67, 374}, StaticText {disabled, "1+4" },
- /* [19] */ {51, 394, 67, 408}, StaticText {disabled, "2" },
- /* [20] */ {51, 430, 67, 454}, StaticText {disabled, "2+4" }
- }
- };
-
- resource 'CNTL' (1341, purgeable) {
- {72, 40, 177, 82}, 0, visible, 0, 0,
- 16*vSlider,
- 0, ""
- };
- resource 'CNTL' (1342, purgeable) {
- {72, 90, 177, 132}, 0, visible, 0, 0,
- 16*vSlider+scaleNoFill,
- 0, ""
- };
- resource 'CNTL' (1343, purgeable) {
- {72, 140, 213, 182}, 0, visible, 0, 0,
- 16*vSlider+ctl3D,
- 10, "" // refCon = number of sections
- };
- resource 'CNTL' (1344, purgeable) {
- {72, 190, 213, 232}, 0, visible, 0, 0,
- 16*vSlider+thumbNoSnap,
- 10, "" // refCon = number of sections
- };
- resource 'CNTL' (1345, purgeable) {
- {72, 240, 177, 282}, 0, visible, 0, 0,
- 16*vSlider+thumbNoSnap+scaleBlank,
- 0, ""
- };
-
- resource 'CNTL' (1346, purgeable) {
- {72, 310, 213, 326}, 0, visible, 100, 0,
- 16*slider,
- 0,
- ""
- };
- resource 'CNTL' (1347, purgeable) {
- {72, 350, 213, 366}, 0, visible, 100, 0,
- 16*slider+narrowScale+4,
- 0,
- ""
- };
- resource 'CNTL' (1348, purgeable) {
- {72, 390, 213, 406}, 0, visible, 100, 0,
- 16*slider+narrowScale2,
- 0,
- ""
- };
- resource 'CNTL' (1349, purgeable) {
- {72, 432, 213, 446}, 0, visible, 100, 0,
- 16*slider+narrowScale2+filledScale,
- 0,
- ""
- };
- //----------------------------------------------------------------------------
- // Panel 7 - PROGBARS - begins here
- //----------------------------------------------------------------------------
- #pragma mark PROGBARS_PANEL7
-
- resource 'DITL' (135, "Progress bar panel 7", purgeable) {
- {
- /* [1] */ {52, 90, 66, 302}, Control { enabled, 1352 },
- /* [2] */ {72, 90, 90, 302}, Control { enabled, 1353 },
- /* [3] */ {96, 90, 110, 302}, Control { enabled, 1354 },
- /* [4] */ {116, 90, 219, 104}, Control { enabled, 1355 },
- /* [5] */ {116, 130, 219, 148}, Control { enabled, 1356 },
- /* [6] */ {116, 170, 219, 228}, Control { enabled, 1357 },
- /* [7] */ {116, 250, 219, 264}, Control { enabled, 1358 },
- /* [8] */ {116, 290, 219, 308}, Control { enabled, 1359 },
- /* [9] */ {72, 320, 88, 425}, Control { enabled, 1360 },
- /* [10] */ {72, 431, 89, 458}, Control { enabled, 1361 },
-
- /* [11] */ {51, 10, 67, 55}, StaticText { disabled, "Variation:"},
- /* [12] */ {51, 60, 67, 80}, StaticText { disabled, "0" },
- /* [13] */ {72, 60, 88, 80}, StaticText { disabled, "2" },
- /* [14] */ {96, 60, 108, 80}, StaticText { disabled, "4" },
- /* [15] */ {222, 10, 238, 55}, StaticText { disabled, "Variation:"},
- /* [16] */ {222, 92, 238, 102}, StaticText { disabled, "1" },
- /* [17] */ {222, 128, 238, 148}, StaticText { disabled, "1+2" },
- /* [18] */ {222, 188, 238, 208}, StaticText { disabled, "1+2" },
- /* [19] */ {222, 248, 238, 280}, StaticText { disabled, "1+4" },
- /* [20] */ {222, 282, 238, 320}, StaticText { disabled, "1+2+4" },
- }
- };
-
- resource 'CNTL' (1352, purgeable) {
- {52, 90, 66, 302}, 5, visible, 50, 0,
- 16*progBar,
- 0, ""
- };
- resource 'CNTL' (1353, purgeable) {
- {72, 90, 90, 302}, 0, visible, 40, 0,
- 16*progBar+roundBar,
- 0, ""
- };
- resource 'CNTL' (1354, purgeable) {
- {96, 90, 110, 302}, 0, visible, 1, 0,
- 16*progBar+barberPole,
- 0, ""
- };
- resource 'CNTL' (1355, purgeable) {
- {116, 90, 219, 104}, 5, visible, 100, 0,
- 16*progBar+vertBar,
- 0, ""
- };
- resource 'CNTL' (1356, purgeable) {
- {116, 130, 219, 149}, 5, visible, 200, 0,
- 16*progBar+vertBar+roundBar,
- 0, ""
- };
- resource 'CNTL' (1357, purgeable) {
- {116, 170, 219, 228}, 5, visible, 150, 0,
- 16*progBar+vertBar+roundBar,
- 0, ""
- };
- resource 'CNTL' (1358, purgeable) {
- {116, 250, 219, 264}, 1, visible, 1, 0,
- 16*progBar+vertBar+barberPole,
- 0, ""
- };
- resource 'CNTL' (1359, purgeable) {
- {116, 290, 219, 308}, 1, visible, 1, 0,
- 16*progBar+vertBar+roundBar+barberPole,
- 0, ""
- };
- resource 'CNTL' (1360, purgeable) {
- {72, 320, 90, 427}, 0, visible, 100, 0,
- 16*progBar,
- 0, ""
- };
- resource 'CNTL' (1361, purgeable) {
- {72, 431, 89, 458}, 0, visible, 100, 0,
- 16*spinner+bigArrows+ctl3D+horizArrows,
- 5, // refCon = increment
- ""
- };
-
- resource 'cctb' (1356, purgeable) {
- {
- cFillPatColor, 65535, 0, 0, // red bar
- cTingeLight, 65535, 65535, 65535 // white background
- }
- };
-
- resource 'cctb' (1355, purgeable) {
- {
- cFillPatColor, 0, 0, 65535, // blue bar
- cTingeLight, 52428, 65535, 65535 // lt blue background
- }
- };
-
- resource 'cctb' (1358, purgeable) {
- {
- cFillPatColor, 65535, 0, 0, // red bar
- cTingeLight, 65535, 65535, 65535 // white background
- }
- };
-
- //----------------------------------------------------------------------------
- // Panel 8 - POPUPEXT - begins here
- //----------------------------------------------------------------------------
- #pragma mark POPUPEXT_PANEL8
-
- resource 'DITL' (136, "Popup ext. panel 8", purgeable) {
- {
- /* [1] */ {50, 10, 78, 350}, Control {enabled, 1370 },
- /* [2] */ {85, 10, 108, 185}, Control {enabled, 1371 },
- /* [3] */ {118, 10, 141, 185}, Control {enabled, 1372 },
- /* [4] */ {151, 10, 174, 165}, Control {enabled, 1373 },
- /* [5] */ {192, 10, 232, 177}, Control {enabled, 1374 },
- /* [6] */ {192, 197, 232, 224}, Control {enabled, 1375 },
- /* [7] */ {85, 185, 108, 450}, Control {enabled, 1376 },
- /* [8] */ {118, 185, 141, 450}, Control {enabled, 1377 },
- /* [9] */ {151, 315, 205, 369}, Control {enabled, 1378 },
- }
- };
-
- // extensions to CDEF 63 - special values in controlMax field
-
- resource 'CNTL' (1370, purgeable) {
- {50, 10, 78, 350},
- popupTitleRightJust,
- visible,
- popupNoTitle+popupNoMark+130,
- 300,
- 16*popUp,
- 0,
- "popupNoMark:"
- };
-
- resource 'CNTL' (1371, purgeable) {
- {85, 10, 108, 185},
- popupTitleRightJust,
- visible,
- popupSymbolOnly+130,
- 301,
- 16*popUp,
- 0,
- "popupSymbolOnly:"
- };
- resource 'CNTL' (1372, purgeable) {
- {118, 10, 141, 185},
- popupTitleRightJust,
- visible,
- popupNoSymbol+130,
- 302,
- 16*popUp,
- 0,
- "popupNoSymbol:"
- };
- resource 'CNTL' (1373, purgeable) {
- {151, 10, 174, 165},
- popupTitleRightJust,
- visible,
- popupCenterText+130,
- 303,
- 16*popUp,
- 0,
- "popupCenterText:"
- };
- resource 'CNTL' (1374, purgeable) {
- {192, 10, 232, 177},
- popupTitleRightJust,
- visible,
- popupIconOnly+130,
- 304,
- 16*popUp,
- 0,
- "popupIconOnly:"
- };
- resource 'CNTL' (1375, purgeable) {
- {192, 197, 232, 224},
- 0,
- visible,
- popupIconOnly,
- 305,
- 16*popUp,
- 0,
- ""
- };
- resource 'CNTL' (1376, purgeable) {
- {85, 185, 108, 450},
- popupTitleRightJust,
- visible,
- popupBlackSymbol+130,
- 258,
- 16*popUp+popupFixedWidth + ctl3D,
- 0,
- "popupBlackSymbol:"
- };
- resource 'CNTL' (1377, purgeable) {
- {118, 185, 141, 450},
- popupTitleRightJust,
- visible,
- popupInsetFrame+130,
- 306,
- 16*popUp+ctl3D+popupFixedWidth,
- 0,
- "popupInsetFrame:"
- };
- resource 'CNTL' (1378, purgeable) {
- {151, 315, 205, 369},
- 0,
- visible,
- popupIconOnly+popupInsetFrame,
- 307,
- 16*popUp,
- 0,
- ""
- };
-
- resource 'MENU' (300) {
- 300, textMenuProc, allEnabled, enabled, "popupNoMark",
- {
- /* [1] */ "Folder 2", 1, "\0x1E", noMark, plain,
- /* [2] */ "Folder 1", 1, "\0x1E", noMark, plain,
- /* [3] */ "Macintosh HD", 2, "\0x1E", noMark, plain,
- /* [3] */ "Desktop", 3, "\0x1E", noMark, plain
- }
- };
- resource 'MENU' (301) {
- 301, textMenuProc, allEnabled, enabled, "popupSymbolOnly",
- {
- /* [1] */ "1", noIcon, noKey, noMark, plain,
- /* [2] */ "2", noIcon, noKey, noMark, plain,
- /* [3] */ "3", noIcon, noKey, noMark, plain,
- /* [4] */ "4", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (302) {
- 302, textMenuProc, allEnabled, enabled, "popupNoSymbol",
- {
- /* [1] */ "1", noIcon, noKey, noMark, plain,
- /* [2] */ "2", noIcon, noKey, noMark, plain,
- /* [3] */ "3", noIcon, noKey, noMark, plain,
- /* [4] */ "4", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (303) {
- 303, textMenuProc, allEnabled, enabled, "popupCenterText",
- {
- /* [1] */ "1", noIcon, noKey, noMark, plain,
- /* [2] */ "2", noIcon, noKey, noMark, plain,
- /* [3] */ "3", noIcon, noKey, noMark, plain,
- /* [4] */ "4", noIcon, noKey, noMark, plain
- }
- };
-
- // N.B. - the following 2 menus, have a space for each item string.
-
- resource 'MENU' (304) {
- 304, textMenuProc, allEnabled, enabled, "popupIconOnly",
- {
- /* [1] */ " ", 47, noKey, noMark, plain,
- /* [2] */ " ", 7, noKey, noMark, plain,
- /* [3] */ " ", 48, noKey, noMark, plain,
- /* [4] */ " ", 49, noKey, noMark, plain,
- /* [5] */ " ", 50, noKey, noMark, plain,
- /* [6] */ " ", 51, noKey, noMark, plain,
- /* [7] */ " ", 52, noKey, noMark, plain
- }
- };
- resource 'MENU' (305) {
- 305, textMenuProc, allEnabled, enabled, "popupIconOnly",
- {
- /* [1] */ " ", 1, "\0x1E", noMark, plain,
- /* [2] */ " ", 2, "\0x1E", noMark, plain,
- /* [3] */ " ", 3, "\0x1E", noMark, plain,
- /* [3] */ " ", 4, "\0x1E", noMark, plain
- }
- };
-
- resource 'MENU' (306) {
- 306, textMenuProc, allEnabled, enabled, "popupInsetFrame",
- {
- /* [1] */ "This popup is", noIcon, noKey, noMark, plain,
- /* [2] */ "inset for a", noIcon, noKey, noMark, plain,
- /* [3] */ "3D effect", noIcon, noKey, noMark, plain
- }
- };
- resource 'MENU' (307) {
- 307, textMenuProc, allEnabled, enabled, "popupInsetFrame+popupIconOnly",
- {
- /* [1] */ " ", 46, noKey, noMark, plain,
- /* [2] */ " ", 45, noKey, noMark, plain,
- /* [3] */ " ", 44, noKey, noMark, plain,
- /* [4] */ " ", 5, noKey, noMark, plain,
- /* [5] */ " ", 5, "\0x1D", noMark, plain,
- /* [6] */ " ", 6, "\0x1E", noMark, plain,
- /* [7] */ " ", 47, "\0x1D", noMark, plain,
- }
- };
- resource 'ALRT' (256, "Need DITLExt", purgeable) {
- {120, 70, 224, 442},
- 256, /* DITL id */
- {
- OK, visible, sound1; /* Stage 4 */
- OK, visible, sound1; /* Stage 3 */
- OK, visible, sound1; /* Stage 2 */
- OK, visible, sound1 /* Stage 1 */
- },
- #if SystemSevenOrLater
- alertPositionParentWindowScreen
- #endif
- };
-
- resource 'DITL' (256, "Need DITLExt", purgeable) {
- {
- /* [1] */ {76, 292, 96, 360}, Button { enabled , "OK" },
- /* [2] */ {16, 64, 48, 328}, StaticText { disabled ,
- "This demo requires System 7 or System 6 with CommToolbox." }
- }
- };
-